<?php
class Zend_View_Helper_ListArticletypes
{
    public function listArticletypes($view,$baseUrl,$paginator)
    {
        $strList = '';
        $items = 0;

        foreach ($paginator as $rec)
        {
            $strList .=  '<tr class=row'.$rec['id'].'>';
            $strList .= '<td align="center"><input type="checkbox" name="chkid" onclick="checkOneItem(document.formIndex)" value="'.$rec['id'].'" /></td>';

            $strList .= '<td align="left">'.$rec['name_vn'] .'</td>';
            $strList .= '<td align="left">'.$rec['name_en'] .'</td>';

            $strList .= '<td align="center"  scope="col">';
            $strList .= '<a href="'. $baseUrl .'/backend/articletype/edit/id/'.$rec['id'] . '"><img class= "action" src="'. $baseUrl.'/public/media/images/default/edit.png" border="0" alt="Edit"></a>&nbsp;&nbsp;&nbsp;';
            $strList .= '<a href="javascript:delList('.$rec['id']. ')"><img class= "action" src="'. $baseUrl.'/public/media/images/default/delete.png" border="0" alt="Delete"></a>';
            $strList .='</td> </tr>';
            $items++;
        }
        echo $strList;
    }
}

?>
